From c7265cced3176a239cce2c4ee456ece2797b6500 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Thu, 15 Jan 2026 21:48:43 -0500 Subject: [PATCH] ci: drop running COSA as UID 0 With some changes made upstream to COSA [1] and a few fixups here to make sure the directory tree for our built software doesn't have setgid files we shouldn't need to runAsUser: 0 any longer. [1] https://github.com/coreos/coreos-assembler/pull/4410 --- .cci.jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.cci.jenkinsfile b/.cci.jenkinsfile index 1bbe6755..785a9f60 100644 --- a/.cci.jenkinsfile +++ b/.cci.jenkinsfile @@ -49,11 +49,13 @@ stage("Build") { // Build FCOS and run kola tests. // There's some parallelization in testiso up to 8G, add 1G for overhead -cosaPod(runAsUser: 0, memory: "9Gi", cpu: "4") { +cosaPod(memory: "9Gi", cpu: "4") { stage("Build FCOS") { checkout scm unstash 'build' shwrap(""" + # Make sure none of the files in the unstashed build are setgid + chmod -c -R g-s installed/ # Move the bits into the cosa pod (but only if major versions match) buildroot_id=\$(cat installed/buildroot-id) osver=\$(. /usr/lib/os-release && echo \$VERSION_ID) -- 2.39.5